list1=[1,'a','AAA',456]
list2=[1,'b','AAA',452]
same_elements=[]
for element in list1:
    if element in list2 and element not in same_elements:
        same_elements.append(element)
print("相同的元素是：",same_elements) 